package com.yao.service;

import com.yao.entity.ServerEntity;

import java.sql.Date;
import java.util.List;

public interface ServerService {
    //    全局查找
    List<ServerEntity> findAll(String server);
    //    全局查找分页
    List<ServerEntity> findPage(String server,int page,int pageSize);
    //    删除
    void delete(String server,int id);
    //    修改
    void update(String server,int id,String cabinet,String positions,String types,String stat,String ip,String app,String systems,String apptype,String datas,String numbers,String brand,String sn,String service,Date dates,String cpu,String amount,String core,String ram,String disk,String capacity,String remain,String used,String admin,String department,String remark);
    //    添加
    void add(String server,String cabinet,String positions,String types,String stat,String ip,String app,String systems,String apptype,String datas,String numbers,String brand,String sn,String service,Date dates,String cpu,String amount,String core,String ram,String disk,String capacity,String remain,String used,String admin,String department,String remark);
    //    模糊查找
    List<ServerEntity> findBySomething(
            String server,String cabinet,String types,String stat,String ip,String app,String systems,
            String apptype,String datas,String numbers,String brand,String sn,String service,Date startDate,Date endDate,
            String cpu,String amount,String core,String ram,String disk,String capacity,String remain,String used,String admin,String department);
    //    模糊查找分页
    List<ServerEntity> findByPage(
            String server,String cabinet,String types,String stat,String ip,String app,String systems,
            String apptype,String datas,String numbers,String brand,String sn,String service,Date startDate,Date endDate,
            String cpu,String amount,String core,String ram,String disk,String capacity,String remain,String used,String admin,String department,int page,int pageSize);
}
